﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第九十一题
//BC93 统计数据正负个数
//https://www.nowcoder.com/practice/3f33889582934a09b4e3ddd3cc976226?tpId=107&tqId=33374&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int count_p = 0;//统计正数
    int count_n = 0;//统计负数
    int arr[10] = { 0 };
    //输入10个整数
    for (int i = 0; i < 10; i++) {
        scanf("%d", &arr[i]);
    }

    //统计正负数
    for (int i = 0; i < 10; i++) {
        if (arr[i] > 0)
            count_p++;
        else if (arr[i] < 0)
            count_n++;
    }

    printf("positive:%d\nnegative:%d\n", count_p, count_n);

    return 0;
}